package com.ssvendas.modelo.arquivos;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.SequenceGenerator;

@Entity
public class Cupom implements Serializable{
	
	private static final long serialVersionUID = -5925096946302225075L;

	@Id
	@SequenceGenerator(sequenceName="CUMPOM_SEQ",allocationSize = 1, name = "ID_CUPOM")
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="ID_CUPOM")
	private String id;
	
	@Lob 
	@Column(columnDefinition="BYTEA")
	private byte[] pdf;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public byte[] getPdf() {
		return pdf;
	}

	public void setPdf(byte[] pdf) {
		this.pdf = pdf;
	}
}
